require'love.filesystem'
require'love.timer'
require'love.image'
require'love.graphics'
require'love.thread'
require'randomlua'
require'main'
require'narrative'

-- this thread's id
this_thread = love.thread.getThread()
this_name_num = this_thread:getName()
green_img = love.graphics.newImage("img/green.png")

print("######## started thread : ", this_thread:getName(), " #######################")


meta_tiles = {}

RNG = twister()
RNG:randomseed(tonumber(tostring(os.time()):reverse():sub(1,10))*this_name_num)

meta_tile_count = 0

temp_name = "none"

str_image = adj_noun_string(meta_tiles)

this_thread:set('image', str_image)
this_thread:set('id', this_name_num)
this_thread:set('name', temp_name)
this_thread:set('done', true)

if this_thread:getName() ~= nil then
	print(this_thread:getName(), "str_image : ", str_image)
else
	print("str_image : ", str_image)
end

print("########   ended thread : ", this_thread:getName(), " #######################")

